package model

import "encoding/xml"

type NCX struct {
	XMLName   xml.Name `xml:"ncx"`
	Head      Head     `xml:"head"`
	DocTitle  string   `xml:"docTitle>text"`
	DocAuthor string   `xml:"docAuthor>text"`
	NavMap    NavMap   `xml:"navMap"`
}
type Head struct {
	Meta Meta `xml:"meta"`
}

type Meta struct {
	Name    string `xml:"name,attr"`
	Content string `xml:"content,attr"`
}

type NavMap struct {
	NavPoints []NavPoint `xml:"navPoint"`
}

type NavPoint struct {
	ID       string `xml:"id,attr"`
	NavLabel struct {
		Text string `xml:"text"`
	} `xml:"navLabel"`
	Content struct {
		Src string `xml:"src,attr"`
	} `xml:"content"`
}
